﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XML
{
    public class Patient
    {
        public int          m_ID;
        public String       m_FirstName;
        public String       m_Name;
        public String       m_Title;
        public String       m_Gender;
        public DateTime     m_Birthday;
        public Adress       m_Adress = new Adress();
        public float        m_Height;
        public String       m_HeightUnit = "cm";
        public float        m_Weigth;
        public String       m_WeightUnit = "kg";
        public Smoker       m_Smoker = new Smoker();
        public String       m_EMail;
        public String       m_Telephone;
        public String       m_MobilePhone;
        public Treatement   m_Treatment = new Treatement();
        public Payment      m_Payment = new Payment();
    }

    public class Adress
    {
        public String m_Street;
        public String m_Number;
        public String m_PostCode;
        public String m_Place;
    }

    public class Treatement
    {
        public String   m_Type;
        public Briefing m_Briefing = new Briefing();
        public DateTime m_Date;
        public String   m_Procedure;
    }

    public class Briefing
    {
        public String m_Goal;
        public String m_Comment;
     
    }

    public class Payment
    {
        public float    m_Price;
        public bool     m_Paid;
        public string   m_PaimentType = "bar";
        public bool     m_Guaranty;
        public string   m_Currency;
    }

    public class Smoker
    {
        public String   m_Typ;
        public DateTime m_Since;
        public String   m_Count;
    }

    public class PatientFullName
    {
        public int    m_ID;
        public String m_FirstName;
        public String m_Name;

        public PatientFullName()
        {
            m_ID        = 0;
            m_FirstName = null;
            m_Name      = null;
        }

        public PatientFullName(int _ID, String _FirstName, String _Name)
        {
            m_ID        = _ID;
            m_FirstName = _FirstName;
            m_Name      = _Name;
        }

        public String ToString()
        {
            return m_Name + " " + m_FirstName;
        }
    }
}
